package com.xyrl.third.baidu.excepton;

/**
 * 阿里云第三方调用异常处理
 *
 * @author zhongp
 * @version 1.0
 * @className AliYunException
 * @company 星纭融链科技服务有限公司
 * @date 2020-01-03 10:05:40
 * @Description
 */
public class BaiduAiException extends RuntimeException {

    private static final long serialVersionUID = -994962710559017255L;
    private String message;
    private String code;

    public BaiduAiException(String message) {
        super(message);
        this.message = message;
    }

    public BaiduAiException(String message, String code) {
        super(message);
        this.message = message;
        this.code = code;
    }

    public String getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
